//引入mockjs
import Mock from "mockjs";

//引入mock封装数据
import homeApi from "./mockServeData/home";

//引入user
import user from "./mockServeData/user";

//引入permisson
import permission from "./mockServeData/permission";

//定义mock
Mock.mock("/api/home/getData", "get", homeApi.getStatisticalData());

//用户列表的数据
Mock.mock("/api/user/add", "post", user.createUser);
Mock.mock("/api/user/edit", "post", user.updateUser);
Mock.mock("/api/user/del", "post", user.deleteUser);
Mock.mock(/api\/user\/getUser/, "get", user.getUserList);

Mock.mock(/api\/permission\/getMenu/, "post", permission.getMenu);
